@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.5;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* 自定义动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

.animate-slide-in {
  animation: slideIn 0.3s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* 美化滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* DiffViewer标签样式 */
.diff-viewer-tabs .ant-tabs-nav {
  margin-bottom: 0 !important;
}

.diff-viewer-tabs .ant-tabs-tab {
  background-color: #1a2234 !important;
  border: 1px solid #374151 !important;
  border-bottom: none !important;
  padding: 0 !important;
  margin-right: 2px !important;
  border-radius: 6px 6px 0 0 !important;
  transition: all 0.3s;
}

.diff-viewer-tabs .ant-tabs-tab-active {
  background-color: #2d3748 !important;
  border-color: #4b5563 !important;
}

.diff-viewer-tabs .ant-tabs-content-holder {
  border-top: 1px solid #374151;
  background-color: #111827;
}

.diff-viewer-tabs .ant-tabs-content {
  height: 100%;
  background-color: #111827;
}

.custom-tabs-bar {
  padding: 0 !important;
  margin: 0 !important;
}

/* 深色主题滚动条 */
.bg-\[\#111827\]::-webkit-scrollbar-track,
.bg-\[#1F2937\]::-webkit-scrollbar-track {
  background: #1f2937;
}

.bg-\[\#111827\]::-webkit-scrollbar-thumb,
.bg-\[#1F2937\]::-webkit-scrollbar-thumb {
  background: #4b5563;
}

.bg-\[\#111827\]::-webkit-scrollbar-thumb:hover,
.bg-\[#1F2937\]::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

